const Patient = require('../models/patient_model')
const jsonResult = require('../utils/JSON')

// 患者-获取患者列表
exports.patientListGet = async (ctx,next) => {
    try {
        let { body } = ctx.request.body;
        let res = await Patient.patientListGet(body);
        console.log(res,"patientListGet");
        ctx.body = jsonResult.resultSuccessJson(undefined, undefined,res)
    } catch (error) {
        console.log(error)
        ctx.body = jsonResult.resultErrorJson(undefined, undefined);
    }
}